@space: 24px;
@border_light: #d9d9d9;
@border_dark: #868686;

.modalDefault() {
  :global {
    .ant-modal-content {
      // background-color: #222629 !important;
      .ant-modal-header {
        padding-top: 18px;
        padding-bottom: 0;
        // background-color: #222629 !important;
        border-bottom: 0;
      }

      .ant-modal-body {
        padding: 5px @space 0 @space;
      }

      .ant-modal-footer {
        padding: @space;
        padding-top: 0;
        border-top: 0;
      }

      .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
        margin-left: 16px;
      }

      .ant-btn {
        border-radius: 5px;
      }

      // .ant-btn-primary {
      //   background: #18a0fb;
      //   border-color: #18a0fb;
      // }
    }
    .ant-select {
      font-size: 12px;
    }
    .ant-input {
      font-size: 12px;
    }
  }
}

.modal {
  .modalDefault();

  .titleDiv {
    display: flex;
    flex-direction: row;
    align-items: center;

    .titleLogo {
      width: 30px;
      height: 30px;
      margin-right: 10px;
    }

    .title {
      font-weight: 500;
      font-size: 18px;
      font-family: PingFang SC;
      line-height: 18px;
      letter-spacing: 0;
      text-align: left;
    }
  }

  .container {
    display: flex;
    width: 100%;
    height: 328px;
    margin-top: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid @border_dark;
    border-radius: 4px;
    .treebox,
    .choosebox {
      display: flex;
      flex: 1;
      flex-direction: column;
      padding: 16px 0;
      overflow: hidden;
    }
    .treebox {
      border-right: 1px solid @border_dark;
    }
    .box_header {
      height: 32px;
      margin-bottom: 8px;
      padding: 0 16px;
    }
    .box_content {
      flex: 1;
      padding: 0 16px;
    }
    .choosebox {
      .box_content {
        overflow-y: auto;
      }
      .box_header {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
    }
    .chooseList {
      margin: 0;
      padding: 0;
      color: var(--font);
      list-style: none;
      > li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 28px;
        .chooseName {
          flex: 1;
          overflow: hidden;
        }
      }
    }
    .close {
      width: 16px;
      height: 16px;
      color: var(--font3);
    }
    .clear {
      color: #8c8c8c;
      cursor: pointer;
    }
    .search_act {
      color: #18a0fb;
    }
  }

  .submitBtn {
    margin-left: 24px;
  }
}
